/*
 * @Author: Zeratul
 * @Date: 2020-08-24 02:31:35
 * @LastEditTime: 2020-08-24 04:22:21
 * @FilePath: \sz-h5-2003-react-mobile\zhangminhui\eleme-react\eleme-user\src\store\reducer\loginReducer\index.js
 */
import {
  CHANGEINPUTPASSWORD,
  CHANGEINPUTTEL,
  LOGIN,
} from "../../actionType";
const defaultState = {
  inpNamePH: "请输入手机号",
  inputPasswordPH: "请输入密码",
  statement:
    "新用户登录即自动注册，并表示已同意《用户服务协议》和《隐私权政策》",
  inputTel: "",
  inputPassword: "",
};
export default function (state = defaultState, action) {
  let newState = JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case CHANGEINPUTTEL:
      newState.inputTel = action.params;
      break;
    case CHANGEINPUTPASSWORD:
      newState.inputPassword = action.params;
      break;
      case LOGIN:
          break;
    default:
      break;
  }
  return newState;
}
